package ZY10_22.Yuan;

public class Yuan {
    static double pai=3.14;
    int r;
    double s;
    double c;
    Yuan(){

    }
    public Yuan(int r) {
        this.r = r;
    }

    public double mianji(int i){

        s=i*i*pai;
        System.out.println("圆的面积："+s);
        return s;

    }
    public  double zhouchang(int i){
        c=2*pai*i;
        System.out.println("周长："+c);
        return c;
    }
    public void show(){
        System.out.println("圆的面积："+s+" 周长："+c);
    }
}
